package com.woniu.service;

import com.woniu.entity.PageData;
import com.woniu.entity.dto.TrainingInfoDTO;
import com.woniu.entity.vo.TrainingVO;
import com.woniu.pojo.Comment;
import com.woniu.pojo.TrainingInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-03-31
 */
public interface ITrainingInfoService extends IService<TrainingInfo> {

//    分页查询全部
    PageData search(Integer currerPage, Integer pageSize, TrainingInfoDTO trainingDto);

    List<TrainingInfo> selectByid(Integer infoId);

    Integer updateTrainingInfo(TrainingInfo trainingInfo);

    boolean saveTrainingInfo(TrainingInfo trainingInfo);

    TrainingVO selectInformation(Integer trainingId);

    TrainingInfo getTaraingById(Integer trainingid);
}
